package com.zsh.spring.test;


import com.zsh.spring.config.TxConfig;
import com.zsh.spring.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = TxConfig.class)
public class JTest4 {

    @Autowired
    private UserService userService;

    @Test
    public void Test1(){
        userService.accountMoney();
    }

}
